const initialState = {
    radius:[
        "50%","70%"
    ],
    arr:[]
}

export default (state = initialState, { type, payload }) => {
    let newobj = JSON.parse(JSON.stringify(state))

  switch (type) {
  
  case "changePie":
    newobj.radius = payload
    return newobj
  case "getlist" :
    newobj.arr = payload
    return newobj
  default:
    return state
  }
}
